<?
header('Content-type: text/javascript');
?>

<? /*
 *
 * This file returns javascript to load up the qTip tooltip plugin
 *
 */ ?>


$(function(){

    $("*[rel~=tipDown][title]").qtip(<?php
    if(file_exists(dirname(__FILE__)."/settingsMenuDown.json")) {
        print file_get_contents(dirname(__FILE__)."/settingsMenuDown.json");
    }
    ?>);

    $("*[rel~=tipUp][title]").qtip(<?php
    if(file_exists(dirname(__FILE__)."/settingsMenuUp.json")) {
        print file_get_contents(dirname(__FILE__)."/settingsMenuUp.json");
    }
    ?>);

    $("*[rel~=tipRight][title]").qtip(<?php
    if(file_exists(dirname(__FILE__)."/settingsMenuRight.json")) {
        print file_get_contents(dirname(__FILE__)."/settingsMenuRight.json");
    }
    ?>);

    $("*[rel~=tipLeft][title]").qtip(<?php
    if(file_exists(dirname(__FILE__)."/settingsMenuLeft.json")) {
        print file_get_contents(dirname(__FILE__)."/settingsMenuLeft.json");
    }
    ?>);


    $("*[class~=tooltip][title]").qtip(<?php
    if(file_exists(dirname(__FILE__)."/settings.json")) {
        print file_get_contents(dirname(__FILE__)."/settings.json");
    }
    ?>);



});


